CXX=g++

CFLAGS=  -O3 -I../vcflib
LIBS =  -lz  ../vcflib/Variant.o ../vcflib/smithwaterman/SmithWatermanGotoh.o ../vcflib/split.o ../vcflib/tabixpp/tabix.o ../vcflib/tabixpp/libtabix.a


# --- targets
all:    variantstats snp-pdf

variantstats: variantstats.o
	$(CXX) -o variantstats $(LIBS) variantstats.o

variantstats.o: variantstats.cpp
	$(CXX) $(CFLAGS) -c variantstats.cpp

snp-pdf: snp-pdf.o
	$(CXX) -o snp-pdf $(LIBS) snp-pdf.o

snp-pdf.o: snp-pdf.cpp
	$(CXX) $(CFLAGS) -c snp-pdf.cpp

# --- remove binary and executable files
clean:
	rm -f snp-pdf.o snp-pdf variantstats variantstats.o
